Added feature to add points while editing