trouble with calendar controller