created the show resource [pid] method