added comments to controler