added logic for "top" and "neighbor" list link displays