The int index = 0 should represent the option from the dropdown menù (at least in my mind), but with this written when I click on one button it opens 3 dialogs at the same time, could you please lead me?