Add toggle functionality for border navigation.