prevent widegt to be create again if we attach it to another parent