edit role and deleted index