Adding model for templates