Removed unnecessary code. added rate view.