Fixed bug where you couldn't add a new page while editing an existing page.
Fixed bugs in header routine. Can now only rename file that exists; no longe rename files from edit view because that created issue where you could try to rename the file before it existed.