Add properties in widget creation