make popup parameters configurable