implement save and delete actions