adjusting the patient dashboard function