edited select location to sort by dialog box