added comments in the base controller