fixed add- and duplicate-events in popup