Ajax statistics tables in detail page variables