Show warning when the user changes the grid size and try to exit without saving