Update switching_pages