change method of detecting screen, now test helper uses