cleanup on the modal