scrollbar implemented. Added onScrolled event to elements