initialize method for smarty engine