Changes to the add and edit actions