Update panTo method