Fixed a few bugs and changes the patient mode to include a view session qrcode