add comment on mainwindow
add test for mainwindow