Opening sample file from menu now asks user to save file and clear undo stack