close edit view when role changes