adapt UI for win32