added automatic form generation from clicks