Fixed an issue with the page layout when creating a new page
Updated the pageAdder so it can be used by the links component