only display trans_details if necessary

only display the transaction source and destination addresses on the
shortest path page if they are different from the source and
destination addresses inputted by the user