Refactor notes form
Add showdown for markdown support
TODO: confirm popup before destroying notes