basics of layout system working, need to work out some bugs