add 'continue editing' option to save but not leave the page, and clean trailing whitespace