Implemented open and save functionality