creating a dispatcher and getting navigation working