add two kinds of layout