Changed activate to eventhandler.