Add shim for local view. rewrite application to enable header and footer