updating layout with search