Displayattempt

I didn't quite get the display of elements working, but I hope I got it close. Unfortuantely, elements are turning off and staying off, and I don't know why. Apparently the leftovers remain visible.