Updating the page adder and selector to add pages from the selector