Displaying result on view page