Changed pages to extend from base.html