Added onNavigate callback API for listening to tree navigation