add layouts and widget