removed extra } that was causing the dialog to not open