renamed "active" class to "selected"