VE-471: fix layout and rename pagesPanel to pages for consistency.