implemented moving and deleting points