move head into layout