* Moving search functions out of GUI functions for cleanup and unit
testing
further seperation of view from functions