set up patient controller and views