set widget id before handling properties