apply layout changes