add smarty

view class