Remove and cleanup views when necessary