adding a dialog to select one item from a list