add eventhandler.js where navigation events are processed