init mtrwindow