Prevent pages from getting overwritten with other page data
If a page is in the process of saving, don't do anything if users attempt to select a different page in the list of pages on the left. Once the changes have been successfully updated and user click on a page, then proceed with the existing logic in selectPage()