move to ref instead of dom