Added open and save as functionality