fixed form bug, updated query_results.html