add updatePosition on Panel