Perhaps it is better to limit course/index.php and course/category.php to just viewing the list of courses and categories, and having separate pages:
course/managecategories.php - managing the tree of categories.
course/managecourses.php?catid=NNN - managing the courses in a category.
Then in the admin menu have entries
- Manage categories
- Add a new course
Instead of Add/edit courses