Make size a static variable, clean up deleted widgets