fix events stats table

Fix the table - do not show lines if count is 0
Make view of stats table more comprehensive - move all calculations in controller