implement history API with navigationview