Fixed the mainactivity class