implement a view for calendar