Adding restrictions to view