modify form and init api