getting dialog to open on url click