added view course details functionality on index page