Navigation stack implementation.