added functionality to display selected contract details