Return correct value for viewAttached