fixed a bunch of problems with how the grid was displaying