toggle categories in editcourse-view
toggle categories debugged