Detecting list selections functionality added