Fixes editMode

editMode was not functional