implemented switching permissions ui