added popLinkSelect method and tested it.