converted templates to extend base.html