ref modal in diff location