changed search to a htpp request with redirect