calling again when clicking and calling on scroll