fixed popup helper