closing screen after plotting, deleted double parts