improve device detection, rename the main window