Clear and update scene when changing layouts.(Not sure if this is the correct way btw, it just seemed to work)