UI

editor is almost ready. Adding UI code to the branch