bug fix: save page on quit