fixing syntax errors in GUI