adds rearrange to head links