Added global publish/subscribe events for save function