Works for usercontrol also