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.
Merge pull request #569 from aledeg/confirm

Change event handling for confirmation dialog