active / inactive form event handling

has bugs