fix search functions in home page