Implementing remove selected item from the list feature.