change inner html to be array and add doc