Simplest example works as expected now (form event bugs solved).