enable search with api table with user input