Add support for adding custom actions when the list is shown and hidden in MultiplePopup component.