many bugs correction and improvements in the GUI classes