added event/buttons callbacks; more UDP protocol work; next step is modal dialogs.