Added getScreenSize to MainComponent