add logic to search if no search is specified