apply layout patch