I tried to make a confirmation dialog to create an event. But it stops
working everytime the dialog is called. Any idea to fix it?