updating grid, html cleanup