move nav init into callback