replace position of links from head to body