setting up page templates