events controller and calendar view