fixed the grid and GUI