Checks for selection after creating a link