The navigate function can receive a number. Calling navigate(-1) moves back one entry in the history stack.