fixed some null pointer exceptions, and fixed the scroll, to make it seem a bit better when deleting objects