add shortcuts in mainwindow
add debug window
use hide_on_delete method