made a static search method so that searches can be done from other activities