added an on click listener to the history fragment.

it opens a dialog whenever an item is clicked.