maybe better to have a custom event handler for this, to not pollute the code more.
`screenVisibilityHandler`, or something similar.