Add function addSaveAction