intergrated total_sum funtion on user panel