Click handling and search box text update

Search box will now enter the clicked item into the box once clicked.
It will also handle using the enter key to add the search term into the
box