support layout selection in layout
remove wrong copyright statement
bug fixes