Made selection listener listen to scroll events