add virtual destructor for Widget base class
fix unused parameters as per vmiklos input