refactoring of onclick send, and preview markdown
taging system