linked leaves and medical examinations to profile. Updated edit leaves form. Fixed DPC bug.