made reopening the same file work.
use a separate button to trigger file dialog.