Added Editing mode to code