added security controls and security based view