added methods in controller