add comments for controller and helper methods