added intialized flag to layout clusterfuck
added default contexts
huge controller refactor