Move pages to React component