added the code to view results