Changing layout tree