fixed form to work for create/update, still ajax/js fixing and create/edit handling to do