Update mainwindow.h

add activity management