Added roles and security to  encounter page