created working select_rating method to show the correct rating for each video but the method is in the view