handle popup surfaces