add hide detection