Fixed setting a custom view left the older ones as subviews

I saw all of my custom views stayed in the view hierarchy even if I added a new one which replaces it. 

Now it wipes all subviews before it adds a custom one.