Added elemOptions to the parameters of eventHandlers functions