Modified the controller to save the course ID after a new thread is created. This will allow multiple threads to be created during the session.