fix mark can be pressed problem
make variable public for mainwindow to use it
add pause function(F3)