improve code for clinic overview