added rating for resource
added rating to view