Edit in place and destroy function added