webui2: backport stats

Signed-off-by: Richard Marko <rmarko@fedoraproject.org>