whiteboard issue when move out of canvas, revert code