Changed the addEventHandler to onclick instead, to get it to work properly