cleaned up template and added total number of results