updates edit toggle