updated sending forms code