add isInvisible and setInvisible methods