add submit button and submit function on scope which currently just prints out the contents of the editor