Restructure header and set up routes and controllers