setting up the various page templates depending on what should be seen