Added save and open functions, save button