updated form for new api, fixed bugs