Add main template smarty