add connect for buttons and set message for quitMessageBox