add appendBefore & appendAfter to Dom