modifying the mainactivity