added view param for isActive