added base template and moved all pages to extend base template