added switch between hour/day view