UK to end freedom of movement on Oct 31