implemented callback stack for saving edited tasks