adding missing parameters of the navigate function