working on model visible state detection logic