slimmed controller and added view counter