Make navbar's back/forward buttons work.