add java buttons and emitter methods