refactored select area dialog.