layout file to dry code