Input stays selected when going back