Fixed the main activity file