action according to role changes