more robust removing of views