fixed bug around using the back button to return to the course page