destroy() method added for all GUI components and other fixes