readded visibility detection