added template to pages