initial draft of rearrange links functionality complete