created widgetWindow class to reduce redundancy in the widgets