it worked, afterHtmlRender is the key to dynamicly display canvas