Update eventhandler.c