added form controls, need to update ajax but nearly done