Adding code to pass values on table selection to detailed view.