made ui focus after inserting links work again