added doc for smarty widget