Altered DetailViewController class to fix crashing issue.