wire up search functions, and send results via email instead of crazy loading approach