pass proper id in results.html template