Added clearRoles function to clear all the roles.
Controller is now using the clearRoles method to clear the roles after the command chain.