set initial value for edit mode