cleaning detailsActivity code