removed dom event handlers for navigtion, rely on external control
Automatically rewritten for npm.