Detaching when only hiding; removing when scope is destroyed