Adding mongo functionality to the confirm page
merging