Fixed some bugs, tools are persistent when undo/redo or whenwhen  new/load scene