add the qr and modify the ui