Why form is not showing properly when embedded?