converting search page to react and listing refactorings