remove old ref for main controller