replacing DIV based rendering with canvas rendering