calendarGUI: minor code reorganization