selection well and button properly change state when last item is removed