routing all thru app error middleware, update main content based on action & routes