Changed some code to get rating of each course for user logged in