counter and css fixes