changes on mainactivity class