replace canvas event