Course show page now renders even if gradeType is zero.
Fixed bug where submit button did not show.
Refactoring.