Added scroll handling to dynamically loaded elements