Fix so that button_to_ajax does not fire confirm dialogs 3 times