add some messaging in dialog for errors + file choice