implement a feature to preview javadoc