search goes back to correct previous page