fixed bug: when settnig the custom view it was not removing the old view from the parent

If you want to replace a custom view with a new custom view, the old views were never removedFromSuperview.  This commit adds in the lines to do just that when a new customView is set