adding role into the controller api object