cleaned up code for handling course removal and roster retrieval