Added functionality to the main manager and added course preference update in instructor