updated the visible check for display objects