committing calendar buttons to switch views