change window and popwin