afterContentParsed hook