window.print() and save function for public section