update canvas/index