added logic for working with admin role