added save functionality to finalize and print
added save functionality to finalize and print