Pageswitcher Copied. Basic functionality in