Add getVisible method