add two button slot with qmsgbox warning