file save working for both temporary and persistent. Currently we can see the file on clicking