Added option to switch from calendar to list view