adding viewcounter