refactor where screen mirroring mode lives