make html_element nested to access graph_count