added onNavigate event