Get proper save and save as functionnality