update styles on details