Destructor added to widgets