Update active page state when a statement is set