Widget's activation logic improved.