simplifies logic to detect screens and events