Refactored all templates to extend from base.html