update doc and initial selection