Use activated event instead of nextTick