fix delete and typo
save function almost ready
save ready
add save code