clear the modal as soon as button is clicked