fixed patient view and also fixed billing incrementing function