To optimize the DetailsActivity