course removal functionality