added the modal window for rearrangement setting