Changed the logic to destroying widgets instead of hiding them in many cases.