diary del function done
edit function