Added part of the event listener

Don't even know if it works