changed search to POST