restore Widget's constructor and destructor to public