Added InsertAfter function

Added InsertAfter() and used it in preparePlaceholder()