Adds layout and dependencies for pages