add counter js with effects and fix other