Lock the layers when updating and creating