Organize codes
Fix crash when closing documents
Fix EscapeMode and QuoteMode binding mistake
Add StartPage