Change the modal behaviour