Added new method to finalize the file in viewer