Prevent default when using the navigation