Fix boxcaption and edit UI for calendar.