refactoring: Context log stat rendering code moved to controller