simplify search function by passing most arguments thru url