add autogeneration of form for gadget