add modal wait event