adding api for calendar view