Added save as, save and open functionality