Updated MainScreen.java

Moved state init to init method