Adding Total Records display, made solr query its own function