First draft of navigate-function