Changed variable in EventListener