Created new method "confirmButtonClicked()"