Fixing api methods for calendar view