Search improvements 

search no longer crashes, is selected after pressing search, results counter added but not working

This is not ready to be pulled in but all the code here will eventually make it into the repo