className -> classList
bug fix: selectionChange throws when selection is null