refactored adjacent areas display code