create rating
bug fixed for edit and include rating in view.html
merged from master