fixed bugs with deeper html tag form functions