Change event handling for confirmation dialog

See #567
Before, when content was loaded dynamically, the confirmation was not poping.
Now, the confirmation pops by changing event handling.