updated setUpDialog()