Finished part 2 by linking and coding detail view