How can i make the modal pop up when clicking on the next button?