onBeforeNavigate

Add a description of onBeforeNavigate