anchor.diff:  		\"steps out\" of [H.p_them()].</span>",
   		"<span class='notice'>...and after a moment of disorentation, \
   		you're besides yourself!</span>")
  -
  +	if(H != spare && isslimeperson(spare) && isslimeperson(H))
  +		// transfer the swap-body ui if it's open
  +		var/datum/action/innate/swap_body/this_swap = origin_datum.swap_body
  +		var/datum/action/innate/swap_body/other_swap = spare_datum.swap_body
  +		var/datum/tgui/ui = SStgui.get_open_ui(old, this_swap, "main") || SStgui.get_open_ui(dupe, this_swap, "main")
  +		if(ui)
  +			SStgui.on_close(ui) // basically removes it from lists is all this proc does.
  +			ui.user = spare
  +			ui.src_object = other_swap
  +			SStgui.on_open(ui) // stick it back on the lists
  +			ui.process(force = TRUE)
   
   /datum/action/innate/swap_body
   	name = "Swap Body"
  
positive.code: 				stat = "Conscious"
  			if(UNCONSCIOUS)
  				stat = "Unconscious"
  			if(DEAD)
  				stat = "Dead"
  		var/occupied
  
negative.code: 	dupe.visible_message("<span class='notice'>[dupe] blinks and looks \
  		around.</span>",
  		"<span class='notice'>...and move this one instead.</span>")
  	if(old != M.current && dupe == M.current && isslimeperson(dupe))
  		var/datum/species/jelly/slime/other_spec = dupe.dna.species
  		var/datum/action/innate/swap_body/other_swap = other_spec.swap_body
  		// theoretically the transfer_to proc is supposed to transfer the ui from the mob.
  		// so I try to get the UI from one of the two mobs and schlump it over to the new action button
  		var/datum/tgui/ui = SStgui.get_open_ui(old, src, "main") || SStgui.get_open_ui(dupe, src, "main")
  		if(ui)
  			// transfer the UI over. This code is slightly hacky but it fixes the problem
  			// I'd use SStgui.on_transfer but that doesn't let you transfer the src_object as well s
  			SStgui.on_close(ui) // basically removes it from lists is all this proc does.
  			ui.user = dupe
  			ui.src_object = other_swap
  			SStgui.on_open(ui) // stick it back on the lists
  			ui.process(force = TRUE)
  
  ////////////////////////////////////////////////////////Round Start Slimes///////////////////////////////////////////////////////////////////
  
  