added email button functionality to match result page