Add state variables for panels.