refactor openlinkinput