Erik Oros's refactoring of MyScreen.java

This should not introduce any functional changes