Fixed bug where when setting the custom views it was not removing the old customview from the screen