Added several event handlers on Java layer