form formatting and set default parameters