add edit mode in editor