removed root path on AJAX call url
cleaned up some code
totals do now show if cap is not set
totals do now show if cap is not set