moved the directory picker to a separate file