Construct the router before trying to bind events to it.