pop up back function fix