Added a navigate callback.