add Stack.navTo's optional argument fn