added buttons to change the grid