adding viewer and removing qrcode