added total order functionality but need to edit function to reload total