Handling dynamic templates for the list and form