Changed ui and some behaviour in carepathways

Changed ui and some behaviour in carepathways and added some comments in
the code.