added flag to distingiush widgets