updated result display functionality