sort of setting active state