Setting up for template views with permissions