Wire up serach function in ui