UI fixes. Implemented detecting logged in user permission level.