displaying previous and next links for each coursegs