implemented search in UI