move edit before register