format code
disable grid when disabling the service