Helper script change selected instance reference