Use helper functions in controller