updating patient views