modify MainWindowView class as a sample.