bind selected and selectedClass