before change layout file