Revert "main window"

This reverts commit 283d6dda6886cac5f4f2b0ea6e0a35f4feedf937.