implementing the calendar with day,month and week options