transform main_window