support for custom events and types in modal actions