add smarty framework