multi-layout and heirarchical layout
updated schema to account for templates