update rows and chart