changed search page init function