built the course page. lots of new course functions