Dialogs question Accept/Cancel

Hi there, when I press either the accept or cancel, the app closed. How could I prevent this?