refresh selected instance after attaching/detaching