added code to mark a selection in the modal dialog
the selection modal will now return the correct selected id