Implemented signals and slots for Widgets.