putting layout in string