add layouts and inherits