Updated so that upon changing title or clicking new document you go straight into edit mode.