some tries to get a value check working within Dialog.accept procedure