set correct classes on title field