adding code for course watching