cleaned up code, posted query results to search page temporarily