Setting up event router