Consolidated all the search to one php