changing conditional statement in ngWidApp