added new edit mode toggle