Fixed major bug with routes rendering due to excessive event handlers.