added legend to calendar view