Added modality to choose editing mode