make popup work