finished the layout for rearrange event