1. update ui (main window, preview window)
2. intersectiontype fix