pass event to removeDialog