implementation of statistics view