Added user active state functionality