example code to show form api