added smart editor