add the leaf flag
add form object
set form submit action and params
set log level to debug