added beginning search code, new attempt at post request