Separate all states by canvas and window