Updated the editor to support basic validation and goto the top of the page on save