remove all popup stuff before transition