Why form embedded using the source code does not load properly?