show result on page instead of in alert