missing end in controller