Change format of add_page to extend from base.html