added detail record persistance, style changes