Made the perimeter text be removed if not used so that window isn't oversized.