Set state on debug view