refactor currentLink() usage