implemented course admin functionality

modified other functions as well