impl access to administration UI only for privileges users
refactor the code