updating layout for ref