the removing and adding of views in layoutSubviews causes an endless loop.