Massachusetts State Tax

I am doing my friend's  State Tax. He is a resident of Massachusetts.  I inadvertently added New York & Virginia.

Now, it's showing that he is a non resident of both states. I would like to know how to remove these two states.

Thank you.