Fix to the insert at page action logic.
Changes to make the project Community compatible.