updated the XPanel control