main window wrapping almost done