Updating the demo (modal in java)