refactor schedule_main view