On click of the GETDIRECTION the dialog is closed