now page counter working