re-wrote most of the pages using extend from base.html