check python version at startup
Added 'Save all' menu
Reuse current frame if the frame only contains provisional document
Switch document caused error.