Avoiding full page reload when refs are added