some refactoring, load dialog, starting orto, saving paths