made the dialog a modal so that the users cannot click on other things while they have the popup open