How do I control when form is available and when the event is closed?