update patient controller