implement search in the ui