Added a result button to show page, and logic to make result show via ajax.