rewrite javadoc for expand and collapse