update base layout