Dismissing the modal works