setting up view page template