create extendForm and localMethod