simplified notebook saving function