Added middleware to api call
removed middleware, added to index instead
added multiple ui-view for header and nav