separated calander control code into different view and controller files