don't set refs outside of a component