add buttons for day/week/month/year, + css and a js function