updating rows and footer