improve java docs for ui