Added the selection changed parameter