Update variable for panel