Update panel variable