refactor ScheduleForm