made errorhandler ask the app for the 404page var, then rendering the page without redirect