passing in descriptor to dialog