added comments in controller