switching app router pages to templates