Update code base to use the global varibles "searchPage" and "searchTypes"