append elements into the body

this fixes the wrong positioning