Adds edit and update