Center on for curve
Change centerOn code