Emptying the list before inserting the new content
Adding a template to the list