added base logic for time view and button group to switch between date/time