totally working dialogue, fix "choose dir" preference