-Fixed bug with layout clear not actually removing old elements.