add the smarty widget