How to change the name of two object by "row.prop"?

The following is the code that changes the name of the particle and its corresponding modifier, but only the name of the particle. How can I change the code so that the input changes both names

import bpy

class WM_OT_PMRename(bpy.types.Panel):
    bl_space_type = 'TOPBAR'  # dummy
    bl_region_type = 'HEADER'
    bl_label = "Particle and Modifiers name"
    bl_ui_units_x = 14

def draw(self, context):
    selected_index = bpy.context.object.particle_systems.active_index
    selected_name = bpy.context.object.particle_systems[selected_index].name

    layout = self.layout        

    item =  bpy.context.object.particle_systems[selected_index]

    if item:
        layout.label(text="Particle and Modifiers name")
        row = layout.row()
        row.activate_init = True
        row.prop(item, "name", text="")

    bpy.context.object.modifiers[selected_name].name = text

def register():

def unregister():