Added save prompt if not saved opening a file

Added save prompt if there is modified content and you are trying to
open a new file