Updated GUI code for WIN32.