Template logic changes

* Pushed titlecasing into template
* Have conditional check numFound instead of docs