merged unitselectadapter and subscribeadapter into a TwoStatesAdapter<T> for generic lists with active and inactive states.