text handling and gui updates