disabled function when course is close