bug fixes to gui