View roles logic