Change layout XML, close http pipe