Various bug fixes in LabDataGUI and added some dependent utilitites