added condition to dont show the table when total is 0