Implemented the 'Save' functionality
- implemented the functionality that allows to save the currently opened file
- fixed a bug of 'Open' functionality that didn't worked fine when user cancel the operation