Change state to gray when unrestricting

Closes #1190