refactored details ID into details class