Added paths

Added functions for pages in app.py and updated all the pages with the
function url_for()