refactor views. use rating view as nested view