Because you need to attach a function to the event first that let me change the behaviour later. Any suggestion to make it cleaner?