Add configurable action to popups