add: Handle resize events ; fix: Define cwidget correctly