created average star ratings for movies show and index view templates