save and delete button work