Refactor couse pages