mid work with navigation history