notebook functions
save before calendar refactor