Revert "Create widget.cpp"

This reverts commit 3f3731ad9b9669be24c950dc8d1b92c383170e7d.