Added page state enum.
Fixed problem where showing course details triggers loading more courses.