fixes

add freeform template, update question function and json