Using pre-calculated page width & height variables instead of artbox to determine the bounds of the page and placement of the X button at the top right.