rearrange detail UI