added flash and redirect if no possible schedules