leave course button working