some changes on patient controller