adding template and working page transistions