refactored detail activity and fragment to accomodate change