Refactored detail activities into a base detail activity