add smarty page