changes for option show and display grand total
Chnages for factor changing values