use pophint:do to switch window