edit function slug