clean up layout file