Allow setting layout type