change styles mapping to type text