add control beforeShowForm event.