update doc according to the changes in widget and APIs