trying to figure out the push state pop state issue