Updated the MainActivity file