Refactoring posts of header to chapters