added stats to block. refactored controller