Added dialog which asks user if he wants to save current file, before opening new