updated form, fixed tokenName, added formOptions parameter to getUrl core method