functionality for editing courses