Making edit work