fix saving method of forms