save changes in layout