Update mainwindow.cpp

activity and ask delay dialog