edit layout home and detail page