still figuring out delSelected function