added deleting and page switch for calendar