update layouts and str refs