making a shared header file for the templates, made a global modal binding, move routing to new routes file