popup closed on draw