add commit to edit funcs