add formatting functionality, paste text auto-reformat