draw undo and react to click