Moved the course navigation code into angular