Made the reset grid button work.