adding a active state to the list