Split up the add and edit templates.