document can now be saved
created separate index and edit pages
opening document for editing
removed debug line