controller for rating