implementing edit mode