able to show a dialog for the searched text, but the position
of the dialog box still needs to be improved