adds display contact detail function